<?php
namespace Model;

class PostArray {

	private $m_posts = array();
        
        public function __construct() {
                
        }
        
        public function add(Post $post) {
                $this->m_posts[] = $post; 
        }
        
        public function get() {
                return $this->m_posts;
        }
}

class Post {
        private $m_id; //Integer
        private $m_title; //String
        private $m_content; //String
        private $m_date; //TimeStamp
        
        public function __construct($id, $title, $content, $date) {
                $this->m_id = $id;
                $this->m_title = $title;
                $this->m_content = $content;
				$this->m_date = $date;
        }
        
        public function getId() {
                return $this->m_id;
        }
        
        public function getTitle() {
                return $this->m_title;
        }
        
        public function getContent() {
                return $this->m_content; 
                                
        }
		public function getDate() {
                return $this->m_date; 
                                
        }
}